import Vue from 'vue';
import VueRouter from 'vue-router'
import App from './app';


Vue.use(VueRouter);

// 路由配置
var router = new VueRouter({
    hashbang: true,
    history: false
});

router.map({
    '/': {
        component: function (resolve) {
            require(['./components/a.vue'], resolve);
        }
    },
    '/a': {
        component: function (resolve) {
            require(['./components/a.vue'], resolve);
        }
    },
    '/b': {
        component: function (resolve) {
            require(['./components/b.vue'], resolve);
        }
    },
});

router.start(App, "#app");